package com.sino.app.service.biz.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sinosoft.dependency.domain.PagerVo;
import com.sinosoft.dependency.dto.PageArg;
import com.sino.app.service.biz.bo.IModelInfoBo;
import com.sino.app.service.biz.service.IModelInfoService;
import com.sino.app.service.domain.ModelInfo;
/**
 * 模型主表（公共字段）业务逻辑组装组件
 */
@Service
public class ModelInfoService implements IModelInfoService{
	/**
	*模型主表（公共字段）数访问对象
	*/
    @Autowired
    private IModelInfoBo modelInfoBo;    
    @Override
	public void createModelInfo(ModelInfo modelInfo){
      modelInfoBo.insert(modelInfo);
	}
	
	@Override
	public void updateModelInfo(ModelInfo modelInfo){
		modelInfoBo.update(modelInfo);
	}
	
	@Override
	public PagerVo<ModelInfo> pageQueryModelInfo(PageArg pa,ModelInfo modelInfoQueryObj){
		return modelInfoBo.page(pa,()->modelInfoBo.list(modelInfoQueryObj));
	}
	 
	@Override
	public ModelInfo getModelInfo(Long id){
		return modelInfoBo.get(id);
	} 
}